#! /usr/bin/env python
"""
Unchunk a batch of file sequences to QuickTime movies.

Use this after running seq_batch_convert.  You can paste in the same
sequences list.

Edit this file and list your sequences below.

Author: Chip Chapin <cchapin@gmail.com>
For More Info: http://code.google.com/p/seq-to-qt/
Latest Update: 2010-02-05
"""
import seq_unchunk

DEFAULT_BASE_PATH = "E:\\Images\\SX110\\MTV-TL01"

def usage():
    print "Usage: seq_batch_unchunk.py "
    exit(2)
    
def main(argv):
    """Main Program"""
    # Step 1: Base directory.  This is the parent of your
    # sequence directories.
    base_path = DEFAULT_BASE_PATH
    
    # Step 2: List your image sequences.
    # Each sequence is a duple containing the FOLDER NAME and the 
    # STARTING IMAGE of the sequence: it is the SAME STRUCTURE used in
    # seq_batch_convert so just copy your list from there.
    # Example:
    sequences =  [("2010-01-05", "MTV-TL01_0001.JPG"),
                  ("2010-01-07", "MTV-TL01_0001.JPG"),
                  ("2010-01-08", "MTV-TL01_0001.JPG"),
                  ("2010-01-09", "MTV-TL01_0001.JPG"),
                  ("2010-01-10", "MTV-TL01_0001.JPG"),
                  ("2010-01-11", "MTV-TL01_0001.JPG"),
                  ("2010-01-12", "MTV-TL01_0001.JPG"),
                  ("2010-01-13", "MTV-TL01_0001.JPG"),
                  ("2010-01-14", "MTV-TL01_0001.JPG"),
                  ("2010-01-15", "MTV-TL01_0001.JPG"),
                  ("2010-01-16", "MTV-TL01_0001.JPG"),
                  ("2010-01-17", "MTV-TL01_0001.JPG"),
                  ("2010-01-18", "MTV-TL01_0001.JPG"),
                  ("2010-01-19", "MTV-TL01_0001.JPG"),
                  ("2010-01-20", "MTV-TL01_0001.JPG"),
                  ("2010-01-21", "MTV-TL01_0001.JPG"),
                  ("2010-01-22", "MTV-TL01_0001.JPG"),
                  ("2010-01-23", "MTV-TL01_0001.JPG"),
                  ("2010-01-24", "MTV-TL01_0001.JPG"),
                  ("2010-01-25", "MTV-TL01_0001.JPG"),
                  ("2010-01-26", "MTV-TL01_0001.JPG"),
                  ("2010-01-27", "MTV-TL01_0001.JPG"),
                  ("2010-01-28", "MTV-TL01_0001.JPG"),
                  ("2010-01-29", "MTV-TL01_0001.JPG")]

    # Now do the conversion.
    seq_unchunk.unchunk_sequences(base_path, sequences)
    

if __name__ == "__main__":
    import sys
    main(sys.argv)
